package gdut.imis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import gdut.imis.Utils.Result;
import gdut.imis.domain.Manager;
import gdut.imis.domain.User;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * @Description
 * @Author JiaFu
 * @Date 2023/4/8 18:26
 */
public interface ManagerService extends IService<Manager> {
    Result uploadAvatar(MultipartFile file) throws IOException;

    void downloadAvatar(String avatarUrl, HttpServletResponse response) throws FileNotFoundException;

    Result getManagerInfo();

    Result updateManagerInfo(Manager manager);

    Result getPageManagerListByType(Integer type, Integer pageNo, Integer pageSize,Long universityId);

    Result deleteManagerById(Integer id);

    Result addManager(Manager manager);

    Result getPageTeachersByUniversityId(Long id, Integer pageNo, Integer pageSize);

    Result addTeacherUser(User user);

    Result deleteTeacherUserById(Long userId);

    void downloadProveFile(String url, HttpServletResponse response) throws IOException;

}
